package com.hckjsec.official.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.official.mapper.OfficialLogininforMapper;
import com.hckjsec.official.domain.OfficialLogininfor;
import com.hckjsec.official.service.IOfficialLogininforService;

/**
 * 系统访问记录Service业务层处理
 * 
 * @author cyt
 * @date 2021-12-10
 */
@Service
public class OfficialLogininforServiceImpl implements IOfficialLogininforService 
{
    @Autowired
    private OfficialLogininforMapper officialLogininforMapper;

    /**
     * 查询系统访问记录
     * 
     * @param id 系统访问记录ID
     * @return 系统访问记录
     */
    @Override
    public OfficialLogininfor selectOfficialLogininforById(Long id)
    {
        return officialLogininforMapper.selectOfficialLogininforById(id);
    }

    /**
     * 查询系统访问记录列表
     * 
     * @param officialLogininfor 系统访问记录
     * @return 系统访问记录
     */
    @Override
    public List<OfficialLogininfor> selectOfficialLogininforList(OfficialLogininfor officialLogininfor)
    {
        return officialLogininforMapper.selectOfficialLogininforList(officialLogininfor);
    }

    /**
     * 新增系统访问记录
     * 
     * @param officialLogininfor 系统访问记录
     * @return 结果
     */
    @Override
    public int insertOfficialLogininfor(OfficialLogininfor officialLogininfor)
    {
        return officialLogininforMapper.insertOfficialLogininfor(officialLogininfor);
    }

    /**
     * 修改系统访问记录
     * 
     * @param officialLogininfor 系统访问记录
     * @return 结果
     */
    @Override
    public int updateOfficialLogininfor(OfficialLogininfor officialLogininfor)
    {
        return officialLogininforMapper.updateOfficialLogininfor(officialLogininfor);
    }

    /**
     * 批量删除系统访问记录
     * 
     * @param ids 需要删除的系统访问记录ID
     * @return 结果
     */
    @Override
    public int deleteOfficialLogininforByIds(Long[] ids)
    {
        return officialLogininforMapper.deleteOfficialLogininforByIds(ids);
    }

    /**
     * 删除系统访问记录信息
     * 
     * @param id 系统访问记录ID
     * @return 结果
     */
    @Override
    public int deleteOfficialLogininforById(Long id)
    {
        return officialLogininforMapper.deleteOfficialLogininforById(id);
    }
}
